# Contributor: Maxim Karasev <begs@disroot.org>
# Maintainer: Maxim Karasev <begs@disroot.org>
pkgname=nvim-cmp-buffer
pkgver=0.0.0_git20220509
_commit=12463cfcd9b14052f9effccbf1d84caa7a2d57f0
pkgrel=0
pkgdesc="nvim-cmp source for buffer words"
url="https://github.com/hrsh7th/cmp-buffer"
arch="noarch !riscv64" # neovim
license="MIT"
subpackages="$pkgname-doc"
depends="nvim-cmp"
source="https://github.com/hrsh7th/cmp-buffer/archive/$_commit/nvim-cmp-$pkgver.tar.gz"
builddir="$srcdir/cmp-buffer-$_commit"
options="!check" # no tests

package() {
	install -d "$pkgdir"/usr/share/nvim/site
	cp -ra after lua "$pkgdir"/usr/share/nvim/site
	install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md
}

sha512sums="
49adc2d48cd89e17c3cd96d66b9f7493e7fee9f80b57b601567823d548cf6c465932422995f8ce978db0013f2df210c479a4822339a23f2c1c1f803e928c9ccc  nvim-cmp-0.0.0_git20220509.tar.gz
"
